//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.ft.adbix.core.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.ft.adbix.core.R;

public class AdTargetView extends FrameLayout {
    private View parent;
    private ImageView ivLogo;
    private TextView adTitle;

    public AdTargetView(@NonNull Context context) {
        super(context);
        this.init();
    }

    public AdTargetView(@NonNull Context var1, @Nullable AttributeSet var2) {
        super(var1, var2);
        this.init();
    }

    public AdTargetView(@NonNull Context var1, @Nullable AttributeSet var2, int var3) {
        super(var1, var2, var3);
        this.init();
    }

    private void init() {
        this.parent = ((LayoutInflater)(getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE))).inflate(R.layout.adbix_widget_ad_target,this,true);
        this.ivLogo = parent.findViewById(R.id.adbix_iv_ad_target);
        this.adTitle = parent.findViewById(R.id.adbix_tv_ad_target);
        this.ivLogo.setVisibility(View.GONE);
        this.adTitle.setVisibility(View.VISIBLE);
    }

    public void setText(String var1) {
        TextView var2;
        if ((var2 = this.adTitle) != null) {
            var2.setText(var1);
        }

    }

    public void setText(int var1) {
        TextView var2;
        if ((var2 = this.adTitle) != null) {
            var2.setText(var1);
        }

    }

//    public void a() {
//        // $FF: Couldn't be decompiled
//    }
//
//    public void setTextColor(String param1) {
//        // $FF: Couldn't be decompiled
//    }
}
